package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbGarbageMailMapper;
import com.ruoyi.system.domain.TbGarbageMail;
import com.ruoyi.system.service.ITbGarbageMailService;

/**
 * tb_garbage_mailService业务层处理
 * 
 * @author SJQ
 * @date 2024-11-01
 */
@Service
public class TbGarbageMailServiceImpl implements ITbGarbageMailService 
{
    @Autowired
    private TbGarbageMailMapper tbGarbageMailMapper;

    /**
     * 查询tb_garbage_mail
     * 
     * @param id tb_garbage_mail主键
     * @return tb_garbage_mail
     */
    @Override
    public TbGarbageMail selectTbGarbageMailById(Long id)
    {
        return tbGarbageMailMapper.selectTbGarbageMailById(id);
    }

    /**
     * 查询tb_garbage_mail列表
     * 
     * @param tbGarbageMail tb_garbage_mail
     * @return tb_garbage_mail
     */
    @Override
    public List<TbGarbageMail> selectTbGarbageMailList(TbGarbageMail tbGarbageMail)
    {
        return tbGarbageMailMapper.selectTbGarbageMailList(tbGarbageMail);
    }

    /**
     * 新增tb_garbage_mail
     * 
     * @param tbGarbageMail tb_garbage_mail
     * @return 结果
     */
    @Override
    public int insertTbGarbageMail(TbGarbageMail tbGarbageMail)
    {
        return tbGarbageMailMapper.insertTbGarbageMail(tbGarbageMail);
    }

    /**
     * 修改tb_garbage_mail
     * 
     * @param tbGarbageMail tb_garbage_mail
     * @return 结果
     */
    @Override
    public int updateTbGarbageMail(TbGarbageMail tbGarbageMail)
    {
        return tbGarbageMailMapper.updateTbGarbageMail(tbGarbageMail);
    }

    /**
     * 批量删除tb_garbage_mail
     * 
     * @param ids 需要删除的tb_garbage_mail主键
     * @return 结果
     */
    @Override
    public int deleteTbGarbageMailByIds(Long[] ids)
    {
        return tbGarbageMailMapper.deleteTbGarbageMailByIds(ids);
    }

    /**
     * 删除tb_garbage_mail信息
     * 
     * @param id tb_garbage_mail主键
     * @return 结果
     */
    @Override
    public int deleteTbGarbageMailById(Long id)
    {
        return tbGarbageMailMapper.deleteTbGarbageMailById(id);
    }
}
